
    # C::B shortcuts begin

    SectionGroup "Shortcuts" SECGRP_SHORTCUTS

        Section "Program Shortcut" SEC_PROGRAMSHORTCUT
            SectionIn 1 2 3 4
            SetOutPath $SMPROGRAMS\${CB_SM_GROUP}
            CreateShortcut "$SMPROGRAMS\${CB_SM_GROUP}\$(^Name).lnk" $INSTDIR\CodeBlocks.exe
        SectionEnd

        Section /o "Program Shortcut All Users" SEC_PROGRAMSHORTCUT_ALL
            SectionIn 1 2 3 4
            SetShellVarContext all
            SetOutPath $SMPROGRAMS\${CB_SM_GROUP}
            CreateShortcut "$SMPROGRAMS\${CB_SM_GROUP}\$(^Name).lnk" $INSTDIR\CodeBlocks.exe
            # Verify if that succeeded. If not, issue an error message
            IfErrors 0 +2
                MessageBox MB_OK|MB_ICONEXCLAMATION \
                    "Cannot create shortcut for all users.$\r$\n(Probably missing admin rights?)" \
                    /SD IDOK
            SetShellVarContext current
        SectionEnd

        Section /o "Desktop Shortcut" SEC_DESKTOPSHORTCUT
            SectionIn 1
            CreateShortCut "$DESKTOP\$(^Name).lnk" $INSTDIR\CodeBlocks.exe
        SectionEnd

        Section /o "Quick Launch Shortcut" SEC_QUICKLAUNCHSHORTCUT
            SectionIn 1
            CreateShortCut "$QUICKLAUNCH\$(^Name).lnk" $INSTDIR\CodeBlocks.exe
        SectionEnd

    SectionGroupEnd

    # C::B shortcuts end
